package com.einmeer.hfbank.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * @author 芊嵛
 * @date 2024/1/11
 */

@Data
@Builder
@AllArgsConstructor
public class ResultVo {
    //响应码
    private int code;
    //User,List<User>...
    //真实数据，要到前端渲染
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Object data;
    //消息提示，成功，失败
    private String message;
    //封装有两个参数的构造


    public ResultVo(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
